import request from '@/utils/request'

export function saveDataSet(data) {
    return request({
        method: 'post',
        url: 'report/design/dataset',
        data
    })
  }

  export function loadDbSet(id) {
    return request({
        method: 'get',
        url: 'report/design/dataset/get/'+id,
    })
  }

  

  export function validateCode(code) {
    return request({
        method: 'get',
        url: 'report/design/dataset/validateCode/'+code,
    })
  }
 

  export default { saveDataSet,validateCode,loadDbSet }